package com.jflm.common;

/**
 * ******************  类说明  *********************
 * class       :  Enums
 * @author     :  hejinyun@umfintech.com
 * @version    :  1.0  
 * description :  枚举常量类
 * @see        :                        
 * ***********************************************
 */
public class Enums {

	/**
	 * ******************  类说明  *********************
	 * class       :  SEQ_NAME
	 * @author     :  hejinyun@umfintech.com
	 * @version    :  1.0  
	 * description :  序列名称
	 * @see        :                        
	 * ***********************************************
	 */
	public static enum SequenceName {
		SEQ_ACTIVITYID("SEQ_ACTIVITYID", "活动序列redis中key名称"),
		SEQ_PACKETID("SEQ_PACKETID", "红包序列redis中key名称"),
		SEQ_GLOBAL("SEQ_GLOBAL", "积分联盟全局序列redis中key名称"),
		;
		
		private String name;
		private String desc;
		private SequenceName(String name, String desc) {
			this.name = name;
			this.desc = desc;
		}
		
		@Override
		public String toString(){
			return this.name;
		}
		
		public String getDesc() {
			return desc;
		}
	}
	
	public static enum RespCode {
		SUCCESS("0000", "成功"),
		THE_ACTIVITY_IS_OVER("80891001", "活动已结束"),
		THE_ACTIVITY_NOT_EXISTS("80891002", "活动不存在"),
		THE_ACTIVITY_NOT_START("80891003", "活动未开始"),
		THE_ACTIVITY_IS_END("80891004", "活动已结束"),
		THE_ACTIVITY_MSG_ERROR("80891005","活动信息有误"),
		THE_USER_IS_CREATED("80891006", "您已经创建过红包啦，伙伴们等着瓜分呢！"),
		UN_GET_YOU_REDPACKET("80891007", "不能领取自己分享的红包"),
		HAS_GET_THIS_REDPACKET("80891008", "您已参加过这次活动"),
		REDPACKET_HAS_COMPLETED("80891009", "红包已领完"),
		UN_GET_REDPACKET("80891010", "未达到红包鼓励金领取的阀值，不能领取"),
		THE_ACTIVITY_IS_CLOSED("80891011", "活动已关闭"),
		SYSTEM_ERROR("9999", "系统错误"),
		;
		private String respCode;
		private String respMsg;
		private RespCode(String respCode, String respMsg){
			this.respCode = respCode;
			this.respMsg = respMsg;
		}
		
		@Override
		public String toString(){
			return this.respCode;
		}
		
		public String getRespCode(){
			return this.respCode;
		}
		
		public String getRespMsg() {
			return respMsg;
		}
	}
}
